package canBeTypedWords;

public class Solution {
    public int canBeTypedWords(String text, String brokenLetters) {
        //
        int ans = 0;
        String[] words = text.split(" ");
        for (int i = 0; i < words.length; i++) {
            boolean bol = true;
            for (int j = 0; j < brokenLetters.length(); j++) {
                if(words[i].contains(brokenLetters.charAt(j)+"")){
                    bol = false;
                    break;
                }
            }
            if(bol)ans++;
        }
        return ans;
    }
}
